<?php

    // database config file
    class LConfig{
        const DBHOST = 'localhost';
        const DBUSER = 'root';
        const DBPASSWORD = '';
        const DBNAME = 'lindoncamaj_test';
        const DBPORT = null;
        const DBSOCKET = null;
        
        public static function getStyle(){ return "/css/style.css"; }
        public static function getTitle(){ return "Source View"; }
        public static function getLogo(){ return "/images/logo.png"; }
        public static function getArticleIcon(){ return "/images/art.png"; }
        public static function getNoImg(){ return "noimg.gif"; }
        
        public static function getSyntaxHighlighter(){
            $html = '<link rel="stylesheet" href="' . WEB_PATH . '/js/styles/shCoreDefault.css"/><script type="text/javascript" language="javascript" src="' . WEB_PATH . '/js/scripts/shCore.js"></script>';
            return $html;
        }
        
        public static function getSyntaxBrush($type){
            switch($type){
                case "php" : 
                    $row = '<script type="text/javascript" language="javascript" src="' . WEB_PATH . '/js/scripts/shBrushPhp.js"></script><script type="text/javascript">SyntaxHighlighter.all();</script>';
                break;
                case "sql" :
                    $row = '<script type="text/javascript" language="javascript" src="' . WEB_PATH . '/js/scripts/shBrushSql.js"></script><script type="text/javascript">SyntaxHighlighter.all();</script>';
                break;
                case "css" :
                    $row = '<script type="text/javascript" language="javascript" src="' . WEB_PATH . '/js/scripts/shBrushCss.js"></script><script type="text/javascript">SyntaxHighlighter.all();</script>';
                break;
                case "all" : 
                    $row = '<script type="text/javascript" language="javascript" src="' . WEB_PATH . '/js/scripts/shBrushPhp.js"></script>';
                    $row .= '<script type="text/javascript" language="javascript" src="' . WEB_PATH . '/js/scripts/shBrushSql.js"></script>';
                    $row .= '<script type="text/javascript" language="javascript" src="' . WEB_PATH . '/js/scripts/shBrushCss.js"></script><script type="text/javascript">SyntaxHighlighter.all();</script>';
                break;
                default : $row = "";
            }
            
            return $row;
        }
        
    }
    
?>